package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 压力流量数据对象 pressure_flow_data
 * 
 * @author qiancheng
 * @date 2025-09-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("pressure_flow_data")
public class PressureFlowData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 气压 */
    @Excel(name = "气压")
    @TableField(value = "air_pressure")
    private BigDecimal airPressure;

    /** 水压 */
    @Excel(name = "水压")
    @TableField(value = "water_pressure")
    private BigDecimal waterPressure;

    /** 水流量 */
    @Excel(name = "水流量")
    @TableField(value = "water_flow")
    private BigDecimal waterFlow;

    /** 气流量 */
    @Excel(name = "气流量")
    @TableField(value = "air_flow")
    private BigDecimal airFlow;

    /** 导入时间，由导入参数传入 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // @Excel(name = "导入时间，由导入参数传入", width = 30, dateFormat = "yyyy-MM-dd ")
    @TableField(value = "import_day")
    private Date importDay;

    /** 开始时间 */
    @TableField(value = "start_time")
    private String startTime;

    /** 结束时间 */
    @TableField(value = "end_time")
    private String endTime;

    /** 序号 */
    @TableField(value = "seq")
    private Integer seq;
}
